package zx.x.modules.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;

import zx.x.modules.app.dao.MerchantDao;
import zx.x.modules.app.dao.OrderEvaluationDao;
import zx.x.modules.app.dto.OrderEvaluationDto;
import zx.x.modules.app.entity.OrderEvaluationEntity;
import zx.x.modules.app.service.OrderEvaluationService;
import zx.x.modules.app.vo.OrderEvaluationVo;


@Service("orderEvaluationService")
public class OrderEvaluationServiceImpl extends ServiceImpl<OrderEvaluationDao, OrderEvaluationEntity> implements OrderEvaluationService {
    @Autowired
    private OrderEvaluationDao dao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderEvaluationEntity> page = this.page(
                new Query<OrderEvaluationEntity>().getPage(params),
                new QueryWrapper<OrderEvaluationEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<OrderEvaluationVo> queryEvaluation(OrderEvaluationEntity dto) {
        return dao.queryEvaluation(dto);
    }

    @Override
    public OrderEvaluationVo dfzh(OrderEvaluationEntity dto) {
        return dao.dfzh(dto);
    }

    @Override
    public List<OrderEvaluationVo> queryEvaluationByUserId(OrderEvaluationEntity dto) {
        return dao.queryEvaluationByUserId(dto);
    }

    @Override
    public List<OrderEvaluationVo> selectList(OrderEvaluationDto dto) {
        return dao.selectList(dto);
    }

}